negotiator.issue
Class ValueDiscrete

java.lang.Object
  extended by negotiator.issue.Value
      extended by negotiator.issue.ValueDiscrete
All Implemented Interfaces:
java.io.Serializable

public class ValueDiscrete
extends Value

Specifies a discrete value. An example of a discrete value is the value "red" for the issue "car color".

See Also:
Serialized Form

Field Summary
 java.lang.String value
          Name of the value, for example "red".
 
Constructor Summary
ValueDiscrete()
          Creates a discrete value without name.
ValueDiscrete(java.lang.String name)
          Creates a discrete value with a name.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ISSUETYPE getType()
           
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public java.lang.String value
Name of the value, for example "red".

Constructor Detail

ValueDiscrete

public ValueDiscrete()
Creates a discrete value without name.


ValueDiscrete

public ValueDiscrete(java.lang.String name)
Creates a discrete value with a name.

Parameters:
name - of the value.
Method Detail

getType

public final ISSUETYPE getType()
Overrides:
getType in class Value
Returns:
type of the issue.

getValue

public java.lang.String getValue()
Returns:
name of the value.

toString

public java.lang.String toString()
Overrides:
toString in class Value

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object